package com.jingdianjichi.sunject.application.convert;

import com.jingdianjichi.subject.common.entity.PageResult;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBo;
import com.jingdianjichi.sunject.application.dto.SubjectInfoDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 题目信息实体类转换
 */
@Mapper
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE=Mappers.getMapper(SubjectInfoDTOConverter.class);

    SubjectInfoBo convertDtoToBo(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBoToDto(SubjectInfoBo subjectInfoBo);

    PageResult<SubjectInfoDTO> convertBoToDtoPageResult(PageResult<SubjectInfoBo> boPageResult);
}
